// SiteTableRecord.h: interface for the SiteTableRecord class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_SITETABLERECORD_H__7A3DAA11_F335_47F5_9B4E_B9279E85B26F__INCLUDED_)
#define AFX_SITETABLERECORD_H__7A3DAA11_F335_47F5_9B4E_B9279E85B26F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

namespace PDMS
{
	namespace PDMSDBIF
	{
		class SiteTableRecord  
		{
		public:
			SiteTableRecord();
			virtual ~SiteTableRecord();
			
			void SetID( unsigned long lID){
				m_lID = lID;
				m_bIsIDModified = TRUE;
			}
			void SetParentID( unsigned long lParentID ){
				m_lParentID = lParentID;
				m_bIsParentIDModified = TRUE;
			}
			void SetDescription( const StdString& strDescription ){
				m_strDescription = strDescription;
				m_bIsDescriptionModified = TRUE;
			}
			void SetPurpose( const StdString& strPurpose ){
				m_strPurpose = strPurpose;
				m_bIsPurposeModified = TRUE;
			}
			void SetFunction( const StdString& strFunction ){
				m_strFunction = strFunction;
				m_bIsFunctionModified = TRUE;
			}
			void SetNumber( int iNumber ){
				m_iNumber = iNumber;
				m_bIsNumberModified = TRUE;
			}
			void SetArea( int iArea ){
				m_iArea = iArea;
				m_bIsAreaModified = TRUE;
			}
			void SetModule( const StdString& strModule ){
				m_strModule = strModule;
				m_bIsModuleModified = TRUE;
			}
			void SetRlstored( const StdString& strRlstored ){
				m_strRlstored = strRlstored;
				m_bIsRlstoredModified = TRUE;
			}
			
		public:
			unsigned long GetID();
			unsigned long GetParentID();
			const StdString& GetDescription();
			const StdString& GetPurpose();
			const StdString& GetFunction();
			int GetNumber();
			int GetArea();
			const StdString& GetModule();
			const StdString& GetRlstored();

			BOOL IsIDModified(){
				return m_bIsIDModified;
			}
			BOOL IsParentIDModified(){
				return m_bIsParentIDModified;
			}
			BOOL IsDescriptionModified(){
				return m_bIsDescriptionModified;
			}
			BOOL IsPurposeModified(){
				return m_bIsPurposeModified;
			}
			BOOL IsFunctionModified(){
				return m_bIsFunctionModified;
			}
			BOOL IsNumberModified(){
				return m_bIsNumberModified;
			}
			BOOL IsAreaModified(){
				return m_bIsAreaModified;
			}
			BOOL IsModuleModified(){
				return m_bIsModuleModified;
			}
			BOOL IsRlstoredModified(){
				return m_bIsRlstoredModified;
			}

		private:
			unsigned long m_lID;
			BOOL m_bIsIDModified;
			unsigned long m_lParentID;
			BOOL m_bIsParentIDModified;
			StdString m_strDescription;
			BOOL m_bIsDescriptionModified;
			StdString m_strPurpose;
			BOOL m_bIsPurposeModified;
			StdString m_strFunction;
			BOOL m_bIsFunctionModified;
			int m_iNumber;
			BOOL m_bIsNumberModified;
			int m_iArea;
			BOOL m_bIsAreaModified;
			StdString m_strModule;
			BOOL m_bIsModuleModified;
			StdString m_strRlstored;
			BOOL m_bIsRlstoredModified;
		};
	}
}
#endif // !defined(AFX_SITETABLERECORD_H__7A3DAA11_F335_47F5_9B4E_B9279E85B26F__INCLUDED_)
